<?php
/**
 * File : ResetFormGenerator.php
 * Created by Ludovic Reenaers
 * Created on  4 nov. 2010
 * lreenaers@hotmail.com
 */
class ResetFormGenerator extends Generator{
	function setUp(){
		$labels = array('{ERROR-HERE}','{encoding}','{url}','{pwslabel}','{pwsinfo}','{pws2label}','{pws2info}','{resetbutton}','{candidate}','{email}');
		$values = array($this->error,$_SESSION['encoding'],$_SESSION['config']->controler,$this->translator->labelPws,$this->translator->pwsinfo,$this->translator->labelPws2,$this->translator->pws2info,$this->translator->resetbutton,$this->params[4],$this->params[3]);
		$template = file_get_contents("html/templates/reset");
		$this->content .=str_replace($labels,$values,$template);
	}
	function dump(){
		$this->setUp();
		return $this->content;
	}
}
?>